package com.yegs.jltqc.U8Controller;

import com.yegs.jltqc.TO.InventoryPageQuery;
import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.U8Service.InventoryService;
import com.yegs.jltqc.config.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/u8Inventory")
public class InventoryController {

    @Autowired
    private InventoryService inventoryService;


    @PostMapping("/query")
    public Msg query(@RequestBody InventoryPageQuery query){
        return Msg.success("page",inventoryService.query(query));
    }

}
